package com.sykj.bsc.wsy.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.bsc.cl.bean.Bis_shop_collect;
import com.sykj.bsc.wsy.mapper.Bis_beauty_configMapper;
import com.sykj.bsc.wsy.model.Bis_beauty_config;
import com.sykj.bsc.wsy.model.Bis_coupon_active;
import com.sykj.bsc.wsy.model.Bis_coupon_record;
import com.sykj.bsc.wsy.service.Bis_beauty_configService;
@Service
public class Bis_beauty_configServiceImpl implements Bis_beauty_configService{
@Autowired
	Bis_beauty_configMapper mapper;
	@Override
	public List<Bis_beauty_config> selectBis_beauty_config(Bis_beauty_config BBC) {
		return mapper.selectBis_beauty_config(BBC);
	}
	@Override
	public void insertBis_beauty_config(Bis_beauty_config BBC) {
		mapper.insertBis_beauty_config(BBC);
	}
	@Override
	public Bis_beauty_config findByConfig_idBis_beauty_config(int config_id) {
		return mapper.findByConfig_idBis_beauty_config(config_id);
	}
	@Override
	public void updateBis_beauty_config(Bis_beauty_config BBC) {
		mapper.updateBis_beauty_config(BBC);
	}
	@Override
	public void deleteBis_beauty_config(int config_id) {
		mapper.deleteBis_beauty_config(config_id);
	}
	/**
	 * 池磊创建 
	 * @param project_id
	 * @return
	 */
	//池磊创建 用途：用来查看收藏详情
	@Override
	public List<Bis_shop_collect> selectBis_shop_collect(String custom_user_id) {
		return mapper.selectBis_shop_collect(custom_user_id);
	}
	
	//池磊创建 用途：用来存储用户兑换颜值的
	public void saveBis_coupon_record(Map map){
		this.mapper.saveBis_coupon_record(map);
	};
	
	//池磊创建 用途：用户兑换颜值的
	public void updateBis_coupon_record(Map map){
		this.mapper.updateBis_coupon_record(map);
	};
	
	//池磊创建 用途：查询用户是否已兑换
	public Bis_coupon_record selectBis_coupon_record(Map map){
		return mapper.selectBis_coupon_record(map);
	};
	
	//池磊创建 用途：查询礼券活动信息表
	public Bis_coupon_active getBis_coupon_activeByid(int active_id){
		return mapper.getBis_coupon_activeByid(active_id);
	};
	
	//池磊创建 用途：查看兑换码
	public List<Bis_coupon_record> selectBis_coupon_record1(String mobile){
		return mapper.selectBis_coupon_record1(mobile);
	};
}
